package com.grape.juc.thread.realize;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * ThreadPool 线程池实现多线程
 *
 * @date: 2021/1/13 20:43 
 * @author: myx 
 * @version: V0.1
 * Copyright: 2020 serve51. All rights reserved. 
 */
public class ThreadPool {
    public static void main(String[] args) {
        ExecutorService executorService = Executors.newCachedThreadPool();
        executorService.execute(() -> System.out.println(Thread.currentThread().getName()));
        executorService.shutdown();
    }
}
